//
//  FKFoundBaseModel.swift
//  FireKnowledge
//
//  Created by 杨伟毅 on 2019/4/19.
//  Copyright © 2019 wely. All rights reserved.
//

import UIKit


class FKFoundBaseModel: FKBaseModel {
    @objc var sygg_list = [FKBannerModel]()
    @objc var classes_list = [FKClassList]()
    @objc var  live_list = [FKLiveListModel]()
    @objc var teacher_list = [FKTeacherListModel]()
    @objc var news_list = [FKNewsList]()
    override static func mj_objectClassInArray() -> [AnyHashable : Any]! {
        return ["sygg_list":FKBannerModel.self,"classes_list":FKClassList.self,"live_list":FKLiveListModel.self,"teacher_list":FKTeacherListModel.self,"news_list":FKNewsList.self]
    }
}

// 轮播图的model
class FKBannerModel: FKBaseModel {
    @objc  var pic:String = ""
    @objc  var url:String = ""
    @objc  var title:String = ""
}
// 课程的model   ZJClassList 和 ZJCourseDetailsMdoel的model 数据一样
class FKClassList: FKBaseModel {
    @objc  var id:String = "" //课程id
    @objc  var bt:String = ""  //课程标题
    @objc var pic:String = "" //课程配图
    @objc  var is_sy:Int = 0//是否收费：1-收费，2-免费
    @objc  var xx_rs:String = "" //学习人数
    @objc var teacher:String = "" //老师姓名
    @objc  var price:String = ""  //价格
    @objc var  ks_rq:String = "" // 开课时间
    @objc var  ks_sj:String =  ""// 开课具体时间
    @objc var yprice:String =  "" // 原价
}
// 直播的model
class FKLiveListModel: FKBaseModel {
    @objc var id:String = "" //课程id
    @objc  var bt:String = ""//课程标题
    @objc var pic:String = ""//课程配图
    @objc  var is_sy:String = ""  //是否收费：1-收费，2-免费
    @objc var xx_rs:String = "" //学习人数
    @objc var teacher:String = "" //老师姓名
    @objc  var ks_rq:String = "" //直播课开课日期
    @objc var  ks_sj:String = "" // 直播开课具体时间
    @objc var price:String = "" //价格
    @objc var is_pay:String = "" // 是否支付
    @objc var is_join:String = "" // 是否加入
    @objc var kc_jj:String = "" // 课程简介
    
}
// 教师的model
class FKTeacherListModel:FKBaseModel
{
    @objc  var id:String = ""
    @objc  var teacher:String = ""
    @objc  var km_name:String = ""
    @objc var pic:String = ""
    @objc var ls_jj:String = ""
}
// 重要资讯model
class FKNewsList:FKBaseModel
{
    @objc  var id:String = ""
    //    override static func mj_replacedKeyFromPropertyName() -> [AnyHashable : Any]! {
    //        return ["ID":"id"]
    //    }
    @objc  var title:String = ""
    @objc  var km_name:String = ""
    @objc var pic:String = ""
    @objc  var yd_rs:String = ""
    @objc var rq:String = ""
    @objc var url:String = ""
}

